<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'category_manage.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<div class="content">
        <div class="tabs">
            <ul>
                <li><a href="">首页管理</a></li>
                <li class="tab_selected"><a>商品大类管理</a></li>
		<li><a href="">商品系列管理</a></li>
                <li><a href="">商品详细管理</a></li>
            </ul>
        </div>
        <div id="add_category_wrap" class="form_wrap left">
        	<!-- <form action="<%=basePath %>category/addCategory.action" method="post" enctype="multipart/form-data"> -->
        	<form action="<s:url value='/category/addCategory.action'></s:url>'" method="post" enctype="multipart/form-data">
        	<div class="input_wrap">
        		<label for="icon-file">图标</label>
        		<input id="icon-file" type="file" name="upload" />
        	</div>
            <div class="input_wrap">
                <label for="category-name">名称</label>
                <input id="category-name" type="text" value="" name="newCategoryName">
                <p>这将是它在站点上显示的名字。</p>
            </div>
            <div class="input_wrap">
                <label for="category-description">描述</label>
                <textarea id="category-description" cols="40" rows="5" name="newCategoryDescription"></textarea>
                <p>“描述”不一定会被显示，但有的主题会显示它。</p>
            </div>
            <div class="action">
				<input type="submit" value="提交" />
            </div>
            </form>
        </div>
        <div class="table_wrap right" id="category_table_wrap">
                <table id="category_manage_table" cellspacing="0">
                    <thead>
                        <tr>
                            <th>名称</th>
                            <th>描述</th>
                            <th>项目数</th>
                        </tr> 
                    </thead>
                    <tbody id="category_tbody">
                        <tr class="repeats">
                            <td>默认类别</td>
                            <td>/</td>
                            <td>4</td>
                            <td></td>
                       </tr>
                       <tr class="repeats">
                            <td>小炒</td>
                            <td>description</td>
                            <td>4</td>
                            <td><a class="del" href="#">删除</a></td>
                            <td><a class="edit" href="#">编辑</a></td>
                       </tr>
                       
                    </tbody>
                    <tfoot>
                        <tr>
                            <th>名称</th>
                            <th>描述</th>
                            <th>项目数</th>
                        </tr> 
                    </tfoot>            
                    </table>
                </div>
    </div>
	</body>
</html>
